package fw.utils;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class PropertyLoader {

	private final String propertyFile;;

	public PropertyLoader(String p_pathToFile) {
		propertyFile = p_pathToFile;
	}

	public String load(String name) {
		Properties props = new Properties();

		try {
			props.load(new FileInputStream(propertyFile));
		} catch (IOException ex) {
			ex.printStackTrace();
		}

		String value = "";

		if (name != null) {
			value = props.getProperty(name);
		}

		return value;
	}
}
